<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{padding:0; margin:0;}
        body{
            overflow-x: hidden;
            /* 不能overflow:hidden; 缩小页面内容显示不全*/
        }
        .nav{
            min-width:1000px;
            height: 100px; background: red;
        }
        .main{
            width:1000px; height:50px;
            background: yellow;
            margin:0 auto;
        }
    </style>
</head>
<body>
    <div class="nav">
        <div class="main">版心</div>
    </div>
</body>
</html>